Declare Function InitializeDeck Lib "qcard.dll" (ByVal hWnd As Integer) As Integer
' Reset all card values to defaults
Declare Sub SetDefaultValues Lib "qcard.dll" ()
' Set the currently used card back design for cards 105 to 109
Declare Sub SetCurrentBack Lib "qcard.dll" (ByVal nIndex As Integer)
' Card drawing subs
Declare Sub DrawSymbol Lib "qcard.dll" (ByVal hWnd As Integer, ByVal nValue As Integer, ByVal x As Integer, ByVal y As Integer)
Declare Sub DrawCard Lib "qcard.dll" (ByVal hWnd As Integer, ByVal nCard As Integer, ByVal x As Integer, ByVal y As Integer)
Declare Sub DrawBack Lib "qcard.dll" (ByVal hWnd As Integer, ByVal nValue As Integer, ByVal x As Integer, ByVal y As Integer)
Declare Sub DealCard Lib "qcard.dll" (ByVal hWnd As Integer, ByVal nCard As Integer, ByVal x As Integer, ByVal y As Integer)
Declare Sub RemoveCard Lib "qcard.dll" (ByVal hWnd As Integer, ByVal nCard As Integer)
' Get card information functions
Declare Function GetCardColor Lib "qcard.dll" (ByVal nCard As Integer) As Integer
Declare Function GetCardSuit Lib "qcard.dll" (ByVal nCard As Integer) As Integer
Declare Function GetCardValue Lib "qcard.dll" (ByVal nCard As Integer) As Integer
Declare Function GetCardStatus Lib "qcard.dll" (ByVal nCard As Integer) As Integer
Declare Function GetCardBlocked Lib "qcard.dll" (ByVal nCard As Integer) As Integer
Declare Function IsCardDisabled Lib "qcard.dll" (ByVal nCard As Integer) As Integer
Declare Function GetCardX Lib "qcard.dll" (ByVal nCard As Integer) As Integer
Declare Function GetCardY Lib "qcard.dll" (ByVal nCard As Integer) As Integer
Declare Function GetUser1 Lib "qcard.dll" (ByVal nCard As Integer) As Integer
Declare Function GetUser2 Lib "qcard.dll" (ByVal nCard As Integer) As Integer
Declare Function GetUser3 Lib "qcard.dll" (ByVal nCard As Integer) As Integer
Declare Function GetUser4 Lib "qcard.dll" (ByVal nCard As Integer) As Integer
' Set card information subs
Declare Sub SetCardStatus Lib "qcard.dll" (ByVal nCard As Integer, ByVal bValue As Integer)
Declare Sub AdjustCardBlocked Lib "qcard.dll" (ByVal nCard As Integer, ByVal bValue As Integer)
Declare Sub SetCardDisabled Lib "qcard.dll" (ByVal nCard As Integer, ByVal bValue As Integer)
Declare Sub SetCardX Lib "qcard.dll" (ByVal nCard As Integer, ByVal x As Integer)
Declare Sub SetCardY Lib "qcard.dll" (ByVal nCard As Integer, ByVal y As Integer)
Declare Sub SetUser1 Lib "qcard.dll" (ByVal nCard As Integer, ByVal bValue As Integer)
Declare Sub SetUser2 Lib "qcard.dll" (ByVal nCard As Integer, ByVal nValue As Integer)
Declare Sub SetUser3 Lib "qcard.dll" (ByVal nCard As Integer, ByVal nValue As Integer)
Declare Sub SetUser4 Lib "qcard.dll" (ByVal nCard As Integer, ByVal nValue As Integer)
Declare Sub SetOffSet Lib "qcard.dll" (ByVal nValue As Integer)
' Dragging subs and functions
Declare Function InitDrag Lib "qcard.dll" (ByVal hWnd As Integer, ByVal x As Integer, ByVal y As Integer) As Integer
Declare Sub AbortDrag Lib "qcard.dll" ()
Declare Sub DoDrag Lib "qcard.dll" (ByVal hWnd As Integer, ByVal x As Integer, ByVal y As Integer)
Declare Function EndDrag Lib "qcard.dll" (ByVal hWnd As Integer, ByVal x As Integer, ByVal y As Integer) As Integer
Declare Sub ReturnDrag Lib "qcard.dll" (ByVal hWnd As Integer, ByVal nCard As Integer, ByVal nOldX As Integer, ByVal nOldY As Integer)
Declare Sub BlockDrag Lib "qcard.dll" (ByVal hWnd As Integer, nFirst As Integer, ByVal nNumCards As Integer, ByVal x As Integer, ByVal y As Integer)
Declare Function EndBlockDrag Lib "qcard.dll" (ByVal hWnd As Integer, nFirst As Integer, ByVal nNumCards As Integer, ByVal x As Integer, ByVal y As Integer) As Integer
Declare Sub ReturnBlockDrag Lib "qcard.dll" (ByVal hWnd As Integer, nFirst As Integer, ByVal nNumCards As Integer, ByVal x As Integer, ByVal y As Integer)
Declare Function GetFreeDestination Lib "qcard.dll" (ByVal nSource As Integer) As Integer
' Undocumented functions, generally not used
' returns the number of any unblocked card which lies beneath the mouse coordinates x, y
Declare Function PointInFreeCard Lib "qcard.dll" (ByVal x As Integer, ByVal y As Integer) As Integer
' returns the number of any card whose top 16 (or OffSet) pixels lie beneath the mouse coordinates x, y
Declare Function PointInCardTop Lib "qcard.dll" (ByVal x As Integer, ByVal y As Integer) As Integer
' manually sets the active drag card for a subsequent DoDrag or BlockDrag call
Declare Sub SetActiveCard Lib "qcard.dll" (ByVal nCard As Integer)